package modelLag;

/**
 * Description of the class Customer.
 * 
 * @author (Christian, Umut, Christoffer, Patrick, Simon) 
 * @project (Semesterprojekt)
 * @version (2014.12.09)
 */
public class Customer extends Person
{
   public int customerID;
   private CustomerType customerType;

   /**
    * Constructor for objects of class Customer.
    * 
    * @param super is a description of a Person.
    * @param name is the user input for the name of a customer.
    * @param adress is the user input for the adress of a customer.
    * @param email is the user input for the email of a customer.
    * @param phone is the user input for the phone of a customer.
    * @param customerID is the user input for the customerID of a customer.
    * @param ct is the user input for the customerType of a customer.
    */
   public Customer(String name, String adress, String email, String phone, int customerID, CustomerType ct){
        super(name, adress, email, phone);
        this.customerID = customerID;
        customerType = ct;
   }
   
   /**
    * Return the phone of the customer.
    */
   public String getPhone(){
       return super.getPhone();
   }
   
   /**
    * Return the name of the customer.
    */
   public String getName(){
       return super.getName();
   }
   
   /**
    * Return the adress of the customer.
    */
   public String getAdress(){
       return super.getAdress();
   }
   
   /**
    * Return the E-mail of the customer.
    */
   public String getEmail(){
       return super.getEmail();
   }
   
   /**
    * Return the customerID of the customer.
    */
   public int getCustomerID(){
       return customerID;
   }
   
   /**
    * Return an object of the type CustomerType.
    */
   public CustomerType getType(){
       return customerType;
    }
}
